package com.lyrcsoft.service;

import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

/**
 * @author fujc-dev@qq.com
 * @date 2023/7/4 20:51
 */
@Component
public class T8Service {

	@Autowired
	//@Lazy //OrderService的代理对象
	//@Value("${test}") 找环境变量的值
	//@Value("#{test}") 找Bean
	//@Value("#{test}")  //Environment
	//private List<Object> orderService; // 拿容器里面所有的Bean
	private Map<String,OrderService> orderService;

	public void test() {
		// 执行的时候才会找Bean
		System.out.println(orderService);
	}
}
